package com.capsulode.excel;

import com.capsulode.excel.annotation.Header;
import lombok.Data;

import java.util.Date;

@Data
public class RowBeanWithAnnotationAndColumnIndex {
    @Header(value = "姓名", columnIndex = 0)
    private String name;
    @Header(value = "性别", dictionary = {Header.EMPTY, "男", "女"}, columnIndex = 1)
    private int sex = 1;
    @Header(value = "入学年份", columnIndex = 2)
    private int year = 2000;
    @Header(value = "手机号码", columnIndex = 3)
    private String mobile;
    @Header(value = "登录密码", columnIndex = 4)
    private String password;
    @Header(value = "会员卡号", columnIndex = 5)
    private String vipCard;
    @Header(value = "洗衣卡号", columnIndex = 9)
    private String washCard;
    @Header(value = "开户缴费（元）", currency = Header.Currency.RMB, columnIndex = 10)
    private int money;
    @Header(value = "赠送金额（元）", currency = Header.Currency.RMB, columnIndex = 11)
    private int giftMoney;
    @Header(value = "免洗次数", columnIndex = 12)
    private Integer freeCount;
    @Header(value = "会员身份", dictionary = {Header.EMPTY, "学生", "教职工"}, columnIndex = 13)
    private int type = 1;
    @Header(value = "出生日期", columnIndex = 6)
    private Date birthDay;
    @Header(value = "身份证号码", columnIndex = 7)
    private String idCard;
    @Header(value = "qq号码", columnIndex = 8)
    private String qq;
    @Header(value = "备注", columnIndex = 14)
    private String remark;
}